#ifndef MAINWINDOW_H
#define MAINWINDOW_H
/*
 * MainWindow.h
 * ---------------------------------------------------------------
 * Project     : SoundSeeker
 * Version     : 1.0
 
 * Category    : GUI
 * Created by  : Florian Loferer, 09/2010
 * ---------------------------------------------------------------*/
/** Description : 
 *		Class that handles all the UI stuff for the application's
 *		main window. All widgets such as the WaveFormWidget and 
 *		the table for displaying and selecting the opened samples
 *		are instantiated in this class.
 *//* ---------------------------------------------------------------
 * Copyright (C) 2010-2011, Florian Loferer
 *
 * This file is part of the SoundSeeker audio sample library administration tool.
 * For conditions of distribution and use, see the accompanying README file.
 */

#include <QMainWindow>
#include "soundplayer.h"
#include "soundsample.h"
#include <QStandardItemModel>
#include <QShortcut>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    QList<SoundSample*>  *listOfAllSamples;
    QStandardItemModel  *model;
    Ui::MainWindow      *ui;
    SoundPlayer* player;
	
	QShortcut* playStop;
	
private slots:
    void addFiles();
    void drawWaveform(QModelIndex index);
	void setCurrentPos(qint64 ticks);
};

#endif // MAINWINDOW_H
